<template>
  <ConfigProvider>
    <YkstConfigProvider v-bind="ykstComCfg" />
    <RouterView></RouterView>
    <ErrorMsgModal />
  </ConfigProvider>
</template>

<script setup lang="ts">
import { ConfigProvider as YkstConfigProvider, ConfigProviderProps } from '@ykst/components';

const ykstComCfg = ref<ConfigProviderProps>({
  cnName: import.meta.env.VITE_APP_TITLE,
  enName: import.meta.env.VITE_APP_TITLE_EN,
  // authorizeUrl: getResourceUrl,
  // getSmsCode: (data: any) => smsCode(data as { phone: string }).then(({ data }) => data.rand_code),
  // upload,
});
</script>

<style scoped></style>
